package okw.database;

import java.io.Serializable;

import core.modules.database.SuperOKWElectionResult;

public class OKWElectionResult extends SuperOKWElectionResult implements Serializable {

	private static final long serialVersionUID = -5854121468571464851L;
	
	private SummaryPackage summaryPackage;

	public OKWElectionResult() {
		super();
	}

	public OKWElectionResult(Long ckwVotingSubcardOption, int votesNumber) {
		super(ckwVotingSubcardOption, votesNumber);
	}

	public SummaryPackage getSummaryPackage() {
		return summaryPackage;
	}

	public void setSummaryPackage(SummaryPackage summaryPackage) {
		this.summaryPackage = summaryPackage;
	}
	
	public void removeFromSummaryPackage(SummaryPackage summaryPackage){
		this.setSummaryPackage(null);
		summaryPackage.getOkwElectionResults().remove(this);
	}
}
